package crazy.java.cha10;

import org.junit.Test;

/**
 * @author futao
 * Created on 2017/12/1 - 19:15.
 */
public class TestClass {
    @Test
    public void testCase001(){
        faceA a=new ClassA();
        a.say();
        System.out.println(a.getClass());

        System.out.println("===============");
        ClassA classA=new ClassB();
        System.out.println(classA.getName());
        classA.hello();
    }
}
